package com.spa.infrastructure.mapper;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spa.application.dto.massagist.MassagistWithdrawOrderDetailDTO;
import com.spa.domain.entity.OrderDetail;
import com.spa.domain.entity.OrderInfo;
import com.spa.infrastructure.enums.dict.order.OrderStatusEnum;
import com.spa.infrastructure.repository.po.OrderDetailPO;
import org.mapstruct.*;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 订单详情表(OrderDetail) 映射结构类
 *
 * @author lig
 * @since 2024-02-21 16:55:30
 */
@Mapper
@MapperConfig(unmappedTargetPolicy = ReportingPolicy.WARN)
public interface OrderDetailMapperStruct {

	OrderDetailMapperStruct INSTANCE = Mappers.getMapper(OrderDetailMapperStruct.class);
	
	Page<OrderDetail> po2Entity4Page(Page<OrderDetailPO> po);
	
	List<OrderDetail> po2Entity4List(List<OrderDetailPO> po);
	
	OrderDetail po2Entity(OrderDetailPO po);

}
